package com.fdd.op.sdk;

/**
 * 401异常
 *
 * @author Fadada
 * @date 2021/04/26
 */
public class AccessTokenException extends Exception {

    private static final long serialVersionUID = -1L;

    private String code;
    private String message;

    public AccessTokenException() {
        super();
    }

    public AccessTokenException(String message, Throwable cause) {
        super(message, cause);
    }

    public AccessTokenException(String message) {
        super(message);
    }

    public AccessTokenException(Throwable cause) {
        super(cause);
    }

    public AccessTokenException(String errCode, String errMsg) {
        super(errCode + ":" + errMsg);
        this.code = errCode;
        this.message = errMsg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}